import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { TodoService } from './todo.service';
import { TodoController } from './todo.controller';
import { Todo } from './entities/todo.entity';
import { TodoReply } from './entities/todo-reply.entity';
import { TodoReplyService } from './todo-reply.service';
import { TodoReplyController } from './todo-reply.controller';
import { StaticFilesController } from './static-files.controller';
import { UploadModule } from '../common/upload/upload.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Todo, TodoReply]),
    UploadModule,
  ],
  controllers: [TodoController, TodoReplyController, StaticFilesController],
  providers: [TodoService, TodoReplyService],
  exports: [TodoService, TodoReplyService],
})
export class TodoModule {} 